package com.raos.fastdfs.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * FastDFS 文件封装类
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2022/11/5 9:41
 */
@AllArgsConstructor // 全有参构造
@NoArgsConstructor // 无参构造
@Data
public class FastDfsFile implements Serializable {

    //文件名字
    private String name;

    //文件内容
    private byte[] content;

    //文件扩展名
    private String ext;

    //文件MD5摘要值
    private String md5;

    //文件创建作者
    private String author;

    public FastDfsFile(String name, byte[] content, String ext) {
        this.name = name;
        this.content = content;
        this.ext = ext;
    }

}
